package com.sky.es.esDataRepository;

import com.sky.es.entity.ProductDoc;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author yangsk
 * 利用SpringDataElasticsearch实现索引的增、删、改、查
 */
@Repository
public interface ElasticsearchDaoRepository extends ElasticsearchRepository<ProductDoc,Long> {
    List<ProductDoc> findByName(String name);
}
